
<?php
namespace Model;
// products模型用来操作products表
class ProductsModel extends \Core\Model{
    //获取products表数据
    public function getList(){
        
        
        $sql="select * from products";
        
        // var_dump($result);
        return $this->db->select($sql,'assoc');
       
    }
    public function del($proid){
        return $this->db->execute('delete from products where proID='.$proid);
    }
}
?>